<?php require_once('Connections/locamedicadmin.php'); ?>

<?php include('userValidation.php'); ?>

<?php require_once('functions.php'); ?>

<?php

  $updateSQL = "UPDATE csre_banner SET selected = 0";
  mysql_select_db($database_locamedicadmin, $locamedicadmin);
  mysql_query($updateSQL, $locamedicadmin) or die(mysql_error());

	

  $updateSQL = sprintf("UPDATE csre_banner SET selected = 1 WHERE id_banner = %s", GetSQLValueString($_GET['bannerId'], "text"));
  mysql_select_db($database_locamedicadmin, $locamedicadmin);
  mysql_query($updateSQL, $locamedicadmin) or die(mysql_error());

?>